//
//  HJVoiceRightCell.h
//  project
//
//  Created by hu on 2019/3/28.
//  Copyright © 2019 健健. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, LGVoicePlayState){
    LGVoicePlayStateNormal,/**< 未播放状态 */
    LGVoicePlayStateDownloading,/**< 正在下载中 */
    LGVoicePlayStatePlaying,/**< 正在播放 */
    LGVoicePlayStateCancel,/**< 播放被取消 */
};


@class HJVoiceRightCell;
@protocol VociePlayerDelegate <NSObject>

@optional
-(void)voiceMessageTaped:(HJVoiceRightCell *_Nonnull)cell data:(NSData *_Nonnull)data isRgiht:(BOOL)isRight;

@end
NS_ASSUME_NONNULL_BEGIN

@interface HJVoiceRightCell : UITableViewCell

-(void)loadRightVocieMsg:(RCMessage *)msg;
@property (nonatomic,strong) NSString * targetId;
@property (nonatomic,weak) id<VociePlayerDelegate> delegate;
@property (nonatomic, assign) LGVoicePlayState voicePlayState;

@end

NS_ASSUME_NONNULL_END
